package cn.chinaunicom.fast.common.constant;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 *
 * @ProjectName:    core
 * @Package:        com.springboot.cloud.common.core.constant
 * @ClassName:      Constants
 * @Description:    系统常量类
 * @Author:         wangjc
 * @CreateDate:     2020/3/16 0016 15:03
 * @UpdateUser:     更新者
 * @UpdateDate:     2020/3/16 0016 15:03
 * @UpdateRemark:   更新内容
 * @Version:        1.0
 */
public class Constants {
	/**
	 * 否 (string类型的0)
	 */
	public static final String STR_NO_ZERO = "0";
	/**
	 * 是 (string类型的1)
	 */
	public static final String STR_YES_ONE = "1";
	/**
	 * 否 (int类型的0)
	 */
	public static final Integer INT_NO_ZERO = 0;
	/**
	 * 是 (int类型的1)
	 */
	public static final Integer INT_YES_ONE = 1;
	/**
	 * 否 (long型 0)
	 */
	public static final Long LONG_NO_ZERO = 0L;
	/**
	 * 是 (long型 1)
	 */
	public static final Long LONG_YES_ONE = 1L;
	/**
	 * 默认字符集 : UTF-8
	 */
	public static final String DEFAULT_CHARSET = "UTF-8";
	/**
	 * 开发管理员账号
	 */
	public static final String SYSADMIN_USER = "admin";
	/**
	 * 线程池名称
	 */
	public static final String ASYNC_THREAD_POOL_NAME = "asyncThreadPool";
	/**
	 * 线程前缀名
	 */
	public static final String ASYNC_THREAD_PREFIX = "async-thread-";

	//默认租户ID
	public static final String DEFAULT_TENANTID="0";
	/**
	 * 分隔符-逗号
	 */
	public static final String SPILT_COMMA = ",";
	/**
	 * 半个月周期
	 */
	public static final int HALF_MONTH = 15;
	/**
	 * 图片类型
	 */
    public static final List<String> IMG_TYPE = Stream.of(".jpeg", ".jpg", ".png").collect(Collectors.toList());
    public static final List<String> IMG_TYPE_UP = IMG_TYPE.stream().map(String::toUpperCase).collect(Collectors.toList());

}
